package org.jeecg.modules.engineering.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.engineering.entity.EquipCollectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 设备采集信息表
 * @Author: jeecg-boot
 * @Date:   2019-08-20
 * @Version: V1.0
 */
@Repository
public interface EquipCollectInfoMapper extends BaseMapper<EquipCollectInfo> {

    @SqlParser(filter = true)
    void insertBatch(@Param("tableSuffix")String tableSuffix,@Param("infos")List<EquipCollectInfo> infos);

    @SqlParser(filter = true)
    void deleteByEquipIds(@Param("deleteEquipList") List<String> deleteEquipList);

    List<EquipCollectInfo> selectSqlList(Page<EquipCollectInfo> page,String itemId, String equipName, @Param("ids")List<String> projectIds);

    List<EquipCollectInfo> selectSqlList(String itemId, String equipName, @Param("ids") List<String> projectIds);
}
